package two_xia.ex9.Demo10;

public class TemplateMethodPattern {
    public static void main(String[] args) {
        Account currentAccount = new CurrentAccount();
        currentAccount.calculateInterest();

        Account savingAccount = new SavingAccount();
        savingAccount.calculateInterest();
    }
}